/**
 * @author 黄波
 * 创建日期：2011Sep 19, 2011
 * TODO// N/A
 */
package com.platform.res.action;

import java.util.List;

import com.platform.pojo.ResType;
import com.platform.res.bo.ResBo;

public class LoadResTypeAction extends ResourceSupport {

	private String id;	//树节点id
	private String nodeText;	//树节点名称
	private List<ResType> types;	//资源类型
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getNodeText() {
		return nodeText;
	}
	public void setNodeText(String nodeText) {
		this.nodeText = nodeText;
	}
	public List<ResType> getTypes() {
		return types;
	}
	public void setTypes(List<ResType> types) {
		this.types = types;
	}
	@Override
	public String execute() throws Exception {
		if(nodeText != null) {
			nodeText = new String(nodeText.getBytes("iso-8859-1"), "utf-8");
		}
		ResBo bo = ResBo.getInstance();
		types = bo.getTypes("0");
		return SUCCESS;
	}
	
}
